package com.fs.service.impl;

import java.util.List;

import com.fs.domain.AuditWorkerCertificationAudit;
import com.fs.mapper.AuditWorkerCertificationAuditMapper;
import com.fs.service.AuditWorkerCertificationAuditService;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.fs.mapper.WorkerCertificationAuditMapper;
import com.fs.domain.WorkerCertificationAudit;

/**
 * 服务人员认证管理Service业务层处理
 * 
 * @author csq
 * @date 2024-10-18
 */
@Service
public class AuditWorkerCertificationAuditServiceImpl implements AuditWorkerCertificationAuditService
{
    @Autowired
    private AuditWorkerCertificationAuditMapper workerCertificationAuditMapper;

    /**
     * 查询服务人员认证管理
     * 
     * @param id 服务人员认证管理主键
     * @return 服务人员认证管理
     */
    @Override
    public AuditWorkerCertificationAudit selectWorkerCertificationAuditById(Long id)
    {
        return workerCertificationAuditMapper.selectWorkerCertificationAuditById(id);
    }


    /**
     * 查询服务人员认证管理列表
     * 
     * @param workerCertificationAudit 服务人员认证管理
     * @return 服务人员认证管理
     */
    @Override
    public List<AuditWorkerCertificationAudit> selectWorkerCertificationAuditList(AuditWorkerCertificationAudit workerCertificationAudit)
    {
        return workerCertificationAuditMapper.selectWorkerCertificationAuditList(workerCertificationAudit);
    }

    /**
     * 新增服务人员认证管理
     * 
     * @param workerCertificationAudit 服务人员认证管理
     * @return 结果
     */
    @Override
    public int insertWorkerCertificationAudit(AuditWorkerCertificationAudit workerCertificationAudit)
    {
        workerCertificationAudit.setCreateTime(DateUtils.getNowDate());
        return workerCertificationAuditMapper.insertWorkerCertificationAudit(workerCertificationAudit);
    }

    /**
     * 修改服务人员认证管理
     * 
     * @param workerCertificationAudit 服务人员认证管理
     * @return 结果
     */
    @Override
    public int updateWorkerCertificationAudit(AuditWorkerCertificationAudit workerCertificationAudit)
    {
        workerCertificationAudit.setUpdateTime(DateUtils.getNowDate());
        return workerCertificationAuditMapper.updateWorkerCertificationAudit(workerCertificationAudit);
    }

    /**
     * 批量删除服务人员认证管理
     * 
     * @param ids 需要删除的服务人员认证管理主键
     * @return 结果
     */
    @Override
    public int deleteWorkerCertificationAuditByIds(Long[] ids)
    {
        return workerCertificationAuditMapper.deleteWorkerCertificationAuditByIds(ids);
    }

    /**
     * 删除服务人员认证管理信息
     * 
     * @param id 服务人员认证管理主键
     * @return 结果
     */
    @Override
    public int deleteWorkerCertificationAuditById(Long id)
    {
        return workerCertificationAuditMapper.deleteWorkerCertificationAuditById(id);
    }
}
